<template>
  <div>
    <div>
      <h4>吞咽功能检查</h4>
      <el-row type="flex" justify="space-between">
        <el-col>
          <span>吞咽功能：</span>
          <div>
            <el-radio-group v-model="pgForm.tygnlcpg1_tyyxxzd62">
              <el-radio style="display: inline" label="配合"></el-radio>
              <el-radio style="display: inline" label="不配合"></el-radio>
            </el-radio-group>
          </div>
        </el-col>
        <el-col>
          <span>吞咽动作</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.swallowing_function_test_radio">
              <el-radio :label="1"><2cm</el-radio>
              <el-radio :label="2">≥2cm</el-radio>
              <el-radio :label="3">无动作</el-radio>
              <el-input v-model="pgForm.swallowing_function_test_input" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>是否反复唾液吞咽试验 </span>
            <el-select v-model="pgForm.swallowing_function_test_value1" placeholder="请选择" style="width: 20%;">
              <el-option
                v-for="item in options1"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>反复唾液吞咽试验 </span>
            <el-select v-model="pgForm.swallowing_function_test_value2" placeholder="请选择" style="width: 30%;">
              <el-option
                v-for="item in options2"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>是否饮水试验 </span>
            <el-select v-model="pgForm.swallowing_function_test_value3" placeholder="请选择" style="width: 20%;">
              <el-option
                v-for="item in options1"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>饮水试验 </span>
            <el-select v-model="pgForm.swallowing_function_test_value4" placeholder="请选择" style="width: 30%;">
              <el-option
                v-for="item in options3"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>是否简易吞咽诱发试验 </span>
            <el-select v-model="pgForm.swallowing_function_test_value5" placeholder="请选择" style="width: 20%;">
              <el-option
                v-for="item in options1"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>简易吞咽诱发试验 </span>
            <el-select v-model="pgForm.swallowing_function_test_value6" placeholder="请选择" style="width: 30%;">
              <el-option
                v-for="item in options4"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>染色试验 </span>
            <el-select v-model="pgForm.swallowing_function_test_value7" placeholder="请选择" style="width: 20%;">
              <el-option
                v-for="item in options1"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>染色试验 </span>
            <el-select v-model="pgForm.swallowing_function_test_value8" placeholder="请选择" style="width: 30%;">
              <el-option
                v-for="item in options4"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>颈部听诊 </span>
            <el-select v-model="pgForm.swallowing_function_test_value9" placeholder="请选择" style="width: 20%;">
              <el-option
                v-for="item in options1"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="12">
          <div>
            <span>颈部听诊 </span>
            <el-select v-model="pgForm.swallowing_function_test_value10" placeholder="请选择" style="width: 30%;">
              <el-option
                v-for="item in options4"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "swallowing_function_test",
  title: "吞咽功能检查",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data() {
    return {
      options1: [{
        value: '是',
        label: '是'
      }, {
        value: '否',
        label: '否'
      }],
      options2: [{
        value: '5-8次',
        label: '5-8次'
      }, {
        value: '<5次',
        label: '<5次'
      }, {
        value: '无',
        label: '无'
      }],
      options3: [{
        value: 'Ⅰ',
        label: 'Ⅰ'
      }, {
        value: 'Ⅱ',
        label: 'Ⅱ'
      }, {
        value: 'Ⅲ',
        label: 'Ⅲ'
      }, {
        value: 'Ⅳ',
        label: 'Ⅳ'
      }, {
        value: 'Ⅴ',
        label: 'Ⅴ'
      }],
      options4: [{
        value: '正常',
        label: '正常'
      }, {
        value: '异常',
        label: '异常'
      }],
      pgForm: {
        tygnlcpg1_tyyxxzd62:'',
        swallowing_function_test_input: '',
        swallowing_function_test_radio: '',
        swallowing_function_test_value1: '',
        swallowing_function_test_value2: '',
        swallowing_function_test_value3: '',
        swallowing_function_test_value4: '',
        swallowing_function_test_value5: '',
        swallowing_function_test_value6: '',
        swallowing_function_test_value7: '',
        swallowing_function_test_value8: '',
        swallowing_function_test_value9: '',
        swallowing_function_test_value10: '',
      }
    }
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
.el-radio-group{
  padding: 10px 20px;
}
.el-radio{
  display: block;
  margin-bottom: 15px;
}
</style>
